package com.jolink.omiis.wechat.message.type;

/**
 * 
 * 满意度级别
 * 
 * @author WangYanqing
 *
 */
public enum SatisfactionType {

	DEFAULT(1, "SATIFSY"), SATIFSY(1, "SATIFSY"), NORMAL(2, "NORMAL"), UNSATISFY(3, "UNSATISFY");

	private String value;
	private int index;

	public static SatisfactionType getDefaultSatisfaction() {
		return SatisfactionType.SATIFSY;
	}

	SatisfactionType(int index, String value) {
		this.setValue(value);
		this.setIndex(index);
	}

	public static SatisfactionType getValue(int index) {
		for (SatisfactionType st : SatisfactionType.values()) {
			if (st.getIndex() == index) {
				return st;
			}
		}
		return null;
	}

	public String getValue() {
		return value;
	}

	public void setValue(String value) {
		this.value = value;
	}

	public int getIndex() {
		return index;
	}

	public void setIndex(int index) {
		this.index = index;
	}
}
